package net.starwifi.duobao.repository;

import net.starwifi.duobao.entity.TradeRecord;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;

/**
 * Created by Administrator on 2015/11/24.
 */
public interface TradeRecordRepository extends Repository<TradeRecord,Long> {

    @Query(value = "select o from net.starwifi.duobao.entity.TradeRecord o where o.memberId=?1 and o.outSn=?2")
    public TradeRecord findByoutSn(Long memberId,String outSn);
}
